#ifndef __UTILS_MY_H__
#define __UTILS_MY_H__

typedef struct _point_t {
  float f32x;
  float f32y;
} point_t;
typedef struct _line_fun_t {
  point_t point1;
  point_t point2;
  point_t result;
  float f32k;
  float f32b;
  unsigned char bPositive;  ///< TRUE-正向运算; FALSE-逆运算；
} line_fun_t;

unsigned char my_strchrn(const char *str, char ch);
unsigned char StringDecToHex(char *str, unsigned char *strhex) ;
unsigned char StringToHex(char *str, unsigned char *strhex);
void utils_line_cal(line_fun_t* line_t);

#endif
